  {{ if .Section }}
  <nav class="post-nav">
    <span class="nav-prev">{{ with .PrevInSection }}&larr; <a href="{{ .RelPermalink }}">{{ .Title }}</a>{{ end }}</span>
    <span class="nav-next">{{ with .NextInSection }}<a href="{{ .RelPermalink }}">{{ .Title }}</a> &rarr;{{ end }}</span>
  </nav>
  <script type="text/javascript">
  document.addEventListener('keyup', function(e) {
    if (e.target.nodeName.toUpperCase() != 'BODY') return;
    var url = false;
    if (e.which == 37) {  // Left arrow
      {{ if .PrevInSection }}
      url = '{{ .PrevInSection.RelPermalink }}';
      {{ end }}
    } else if (e.which == 39) {  // Right arrow
      {{ if .NextInSection }}
      url = '{{ .NextInSection.RelPermalink }}';
      {{ end }}
    }
    if (url) window.location = url;
  });
  </script>
  {{ end }}
  </article>
  </div>
  <footer>
  {{ partial "foot_custom.html" . }}
  {{ partial "footer_highlightjs" . }}
  {{ with .Site.Params.footer }}
  <hr>
  <div class="copyright">{{ . | markdownify }}</div>
  {{ end }}
  </footer>
  {{ template "_internal/google_analytics.html" . }}
  </body>
</html>
